kma_rm implemented