implemented delete random node