implemented the dead node reaper