list code in c
figfix for list