passing addresses to map