Question: why is nbs used instead of br2?
Answer: NBS is used as a substitute for Br2 in these cases since Br2 tends to react with double bonds to form dibromides. The advantage of NBS is that it provides a low-level concentration of Br2, and bromination of the double bond doesn't compete as much.