remove assigned but unused variables