prototype for grid