adding bb functionality