simplify implementation of BC algorithm