fix mismatched decl/implementation