added palindrome,middle