adding polynomial support