remove redundant var definition