deleted old node implementation from the head