parser for monomial working