buildGrid