Update nfunction.hpp