linked list updated with delete with pid value