updated the code to output tidy.txt data