fixes variable naming error