adds z_min and z_max params