forgot to change for inside function, traverseUp