added code to generate uw operator