started implementing grid interpolation