cleaning some polynom functions