made list.c cleaner