problem unlock logic