spiral through recursion