amended recusion to stop at 10