refactor unlock robot