combining bb functions