channel enumerator as function