corrected interpolate calculation