added lns function