fixed warnings regarding deprecated enums