using map to reformat data