reversed order of actions