work on basic blocks. extended basic blocks not working