added kma-specific modifications