centralize grid creation