first branch of recursion