solved some recursion problems