fixed the addMaps() helper method