for test the nl function