format_grid_data rewrite 1