add two accept sloutions of the traversal problem