palindrome first iteration