added ns to the functions