removed extern/list.h dependency from list.c/h