updated palindrome script