change the order of actions