modified arrangement to give txt file a better format