pointer issue fixed