fix to make interpolation smoother