add quadratic fitting