convert class to map
merge