fitting a 5th order polynomial to the IV, and it seems to work nicely