saves the total list to file