Complete function of grid level