started euler cycle code