separate out eb functions