bug fixes 2nd threshold background