Changing the arrangement of certain elements