update interpolation function