and in fact in the explanation given there is no mention of the substitution. Anyway it handles correctly the interesting part and also in this case helps a lot in spotting the wrong part.
There are no rules, there are no thumbs..
Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.