extracted method isLockedIn