When we have a relationship with Christ, we abide in Him. When that happens there is an exchange. Jesus takes our sins and exchanges it for His righteousness. The cross was a one time event that allows this to happen, but righteousness is an on-going process.