James 5:16
Confess your faults one to another, and pray for another, that ye may be healed. The effectual fervent prayer of a righteous man availeth much.
We all have faults, and hiding them and denying the problem doesn’t make it go away. When we confess our failures, we allow the light of Gods’ word to change our hearts and change the situation. Guilt and unforgiveness will get in the way of healing. A righteous man believes God and His word and prays moving God to act on our behalf.