updated merging in bg class (Michele)