fix define of z