removed hardcoded grid size