update repository model