change free to list->free