added conditional check for red thresh