changed sequence of operations