mods to the list.c program