changed the dist out to match the deadlock implementation