updated ZM equation