added reverseList()