grids working and using the dims to get the offset