remember to reset inm1 each time around the interpolation loop