edited file so output text file would save to the correct folder