enums in closures