remove redundent variable