made the interpolation function return things in the order we thought it was