creating palindrome