refactor parsing of operator order