eliminated dead lock