main functionality of list is now complete.