eliminate unused variables