remove unused codes and scripts