changed enum to _enum