used parse polynomial