remove reduntant local variable