do not move around loop variable incrementations when the helper is used outside the loop