refine code style & meaning.