working on remove_polynomials