made the repository singleton