procedural loops for ie