renamed to lock