fixing light computation