changed traversal variable names