move attributes in class