improved regular_grid