let the percentage of light see
tried to fix the light function