solve overflow issue for throughput