replaced shared_ptr points with points