replaced call to query.py by traversal.py