better enum func calls