Hey there im an apprentice electrician and still learning so please forgive me on my lack of knowledge here, but i had a friend who asked me to change out some receptacles in there house for them which sounded like a straightforward task that I've done before, but the issue i ran into is something i haven't seen and experienced yet.  There are 3 wire conductors feeding 3 outlets on this circuit (Red, Black, White and bare copper) and I've never seen a third wire (Red) for outlets before, and unfortunately my friend had removed them all already to do some painting so i was not able to see for myself how they were wired before, so i checked for voltaged where the power comes into the first box to see which wires where hot and i was getting 120v on the Red and 20v on the Black, at this point i asked my friend how the old ones where wired up and i installed the new ones accordingly as shown in my picture diagram (sorry for my poor MS paint abilities) and i powered them up and checked them with my receptacle tester and it said it was wired correctly and worked.

So i'm wondering is this actually correct?

If this is not correct how should it be wired?

And why is there a 3rd wire?

Also is the 20v i got on the black wire just phantom voltage?

Id greatly appreciate the help and knowledge!

[![enter image description here][1]][1]


  [1]: https://i.sstatic.net/YkwFL.png