the urtwn and rtwn have a lot of duplicate code.
Merging them will improve both.

Add a comment