eliminate z trick