opportunity function management