added map intialization functionality