as the dust and gas get closer together this gravitational collapse accelerated. due to variations in nebulae denser regions begin to form. denser regions begin to attract more dust and gas getting heavier and denser. they also get hotter as gravitational energy begins to transfer to thermal energy.