updating mls polynomial formulation