reduced the times of recursion.