change logic of recovery