what is locked used for?