sorting out csv file transformations