ns in generator