fix polynomials printing