handle FOR_ALL_BB()