def: add ksm