first draft of cp randomization