breaking the deadlock