add parameters to tweak light detection