change constant to enum