ns and gen