This method must remove all previous attributes before applying these attributes