changed linklist delete node function