list with append to function