repeat workaround in loop