check frontlight before setting intensity