added the LN function