optimize deleted several unused files and functions