added list functions in list.h