dump the list correctly