made constant functions declared as const in LightSource