unwound an inner loop