updating luminosity and other things