add basic blocks