added mainlist.c