basic block adding