change order of operations