automatic Z finding