scope loop variables in cond and body