updated version of PTW