enums should be passed by value