changing data payload to map type