grid_to_single