GENERATING COPIED CODE