I had a Roth IRA distribution then returned part of it to my account, the 1099r reflects the distributed amount but not the return. Where is the return accounted for?

If 16k was distributed from my Roth IRA and then I put 2k back as a return of principle, how do I account for this so as not to affect my basis and ability to access these principle funds in a future basis distribution?