replaced class with attribute