It  is  mitigating  if  voluntarily done before  the  prosecution  starts  to  present evidence.