change to use exist repo method