Actually you subtract the deferred capital gain amount from basis of new asset. Make sure you attach statement detailing transaction and amount deferred.