handle multiple ptrs