fixed class decl