removed mainloop iteration cut