restructure text