added accumulate traversal scheme