make the interpolateion a little faster by moving the file reading code outside of the inner loop