- use enum type instead of int