changes in palindrom problem