fixed bug not doing cmodel.  check region type