add palindrom function