fixing var mixup