custom adapter for repositories