refactor how we use gridsize