revise the definition of multiple basic locks in the code