fix docs and polynomials