ctm init
finished to implement mean