completed CM calculations