change z initialization