removed dependency on nc_polynomial module