added functionality to find perfect region of interest start for cm method