nailed the pointer issue