move lnif() out of SETUP FUNCTIONS section