changed tourlength calculation