updated repository model