remove unnecessary setvariable