wrong var used - fixed