XMM-Newton has surveyed nearly 200 stars under formation to reveal, contrary to expectations, how streams of matter fall onto the young stars' magnetic atmospheres and radiate X-rays. The results defy astronomers’ expectations, as the streams of falling matter interact with the hot corona, cooling it, while the ejected streams of gas heat up in shocks as they are ejected from the star.