fix variable naming bug