basic get value in for loop.