TODO: test interpolation without calling previous function