recreating a repository