update grid and number