created process EML function