types.h to 3.0 version