renaming the class of the element