two interpolation functions