cleanup the unused files, simple the function and promote the effecience.