Shame is an indication of being wrong which is the first step towards repentance.