increase iterations, copied over manual offsets, brought forward end tag