write lines to file and no longer discard non-event items
storing item values in list instead of map to keep original order
fixed value manipulation