table fix for palindrome