fixed for iterations per update > 5000