Yang-Mills connections on U(n)-bundles over compact Riemann surfaces