added a distinct flag to the get and paginate method of repositories