Changed yz-finction