added function repoToDict