order of operations issue in CS