this occurs in the main sequence of stars