luminosity not working out right