restructure some text