refactor find_deadlocks method