basic var stuff in loop