switch before unlocking