end loop properly, a hazard of not yet being able to compile locally