first ionization icrease across the period . but beryllium has higher firsr ionization energy than boron why

The reason for this is because beryllium has a smaller atomic radius than boron. This means that the electrons in beryllium are held more tightly by the nucleus, resulting in a higher first ionization energy.