remove redundant variable