decoupling styles retrieval from the attr method