refactors out defaultMap