some modification about copy to repository