finished backwards traversal with prints