update to grid structure