Correct use of variable