Add checking type is generate