added more to the recursive algo