added macro for getTypeId definition