corrected variable name error