trying to manage the data to store in a .txt only the essential