add two smart ptrs