replace classes by attributes