added zfirstWHAMP variable