add getter for locked