fixes misnamed variable