transfer of code from beats to cc-framwork