could you please use two SGVectors instead of the ptrs here?