refactor document number & still deadlock found