fix misnamed variables