corrected bug/typo, misnamed variable