adding polynomials and regularization