bug fixed in typedefs