Update function.nit