small tweaks on brightness functions