kma_free added