changes to reverse list to deal with linked lists & c