changing order of operations