updated regrid2d