zmin to zmax measurements seem to be wrong