use correct enum types