random generator has been added to the disconnect process