added pop_grid script