streamline brightness code