made the palindrome work