coniditionals of locked state