update repository and service