beginning recursion scripts