corrected variable use