modify linkedList