add a method to reverse the repository