a detail repository works