update grid generator