updated the bw threshold to if statements based on intensity