basic blocks and data structures of R added.