fix variable naming issue