improve code.fix bugs .better text process