add trimming
fix typo mod->cmod