use enum instead of number