initial version of BBoperator worked  out with thomas