added order of operations