updating grid file