optimize the codes.
adjust the directories.