added else statement for traversal.py