updated bbnew-inplace