Solve the problem after two re-writing.