finds correct leaf box in traversal phase