corrected var name error