update grid file structure