replace MinUnit with CUnit