fixed misnamed var