working on pointer issues