strip breaks and embed thinking functionally