ugprade to cwise transform