Adaptation codeBlocks