it works - but can i dynamically change the loop indices?