trying to fix lock out condition