clean up and euler tour