adding delay in restart