set attribute class