add function with interpolation