for loop variable rendered correclty