added requirements to traveling salesman