work on the polynomial basis functions