update for grid