created a nit performance function