why is nbs used instead of br2?
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.