Update generate_ns.hpp