n2l function added.