Revert "refine the code."

This reverts commit 181ececc4d7c9ad33fa478296486a9be59157b41.