adding kmp