Jeff vs. Wiley CPAexcel - REG: Like-kind exchanges

In Jeff's REG Ninja audio, he mentioned that the new basis for the like-kind exchange is calculated as follows: New basis in received property = Old basis in property given up + Boot paid - Gain recognized - boot received - Loss While Wiley book mentioned that that the new basis for the exchange is calculated as follows: New basis in received property = Old basis in property given up + Boot paid + Gain recognized - boot received - Loss Now i'm confused, can Jeff or someone else please explain whether Gain recognized is added or subtracted? Thanks!