corrected misnamed variable