remove redundant local variable