added extra polynomial function