refactor and fix spatial interpolation methods