generate ERP in single condition