refine the code style of parsing script.