border interpolation