cleaner definition of list traverse