control reduce task number