Perfecting resource file and deleting unused file