changed the structure of the output text in each file