nearest traversal callback