important changes  for 3D interpolation applied