how to use enum