resolved map pointer issue