add palindrome function