fix blending function and interpolation