eliminated run-time loop counting when round<=40