begin to add code for z param