fixing sequence of actions