issue with vector resize and pointer memory still not resolved. commiting to share work