restored competency