lia3 simple recursion works, but doesn't work in real program