review code for link list