basic BSW transformation in place