refactorization of polynomial's constructors