use enum instead of static const variable for id