using pointer as result of find