assume that variables declared inside a for loop are invisible outside of it