Title: A study of magnesium II und helium I in the spectra of early type stars