use delayed expansion in loops