impl EulerTour check