updated functions to toggle c block.