convert data to map
convert data to map