reducing complexity of cards#unlock