add deadlock part