switched to bilinear interpolation