changed parseOps to take advantage of associative array