modify for build whth cm