more math for cpx