modified [palindrome partitioning]