update grid train