fixing misnamed variable on line 174