sets up grid data