moving attributes to happen in the right order