p=wy+(1-w)z,