fixed repeated typedefs warning