change the way the txt file is created