dead lock resolved