fixed a misnamed variable