use enum for views