finish the grid part