lock properly