rm nsearch function