edit kmp