deleting linked list as nothing is thr