renamed method to populate_grid