corrected var reference