switched to dict method of reading input from header of csv, more flexible