tweaks so the grid does not have to be read in eery loop