implementing checkRepository