update palindrome