added BBL function + test