changes added to merge with hashmap