adding tail recursion note