finished the adding main module