under the principle of subrogation, the insurer has the right to?