type in generator