Hello, As a exercise I need to rewrite the tail function into a safetail function by using conditions. So I made this : http://codepad.org/bKcCUdqy But as you can see there is a error message. Can anyone explain me how to solve this ? Roelof