add interpolate function to fix tests