update MyRoadGenerator to improve the performance.