generate all B instances