allow distance=0 for luminosity calculation