final version for TSPTW