adding spatial grid