refactor map merge method
remove unused dependencies