adding the bbb implentment code