update grid system