cutting and distribution of the code