edited model repository.php