correct palidrome method
fixed merge