Revised recursion with problem