update grid