modify show_hdp to gen_grid_data