executing a nif function works fine