cleanup tour code