light calculation corrected