'case'-less implementation