problem with ptr2 and ptr3