looping corrected, and events works like a charm