Skip to main content
Skip to Filters
1,027 listings

Save with BMW X5 rebates
Check your savings potential before you buy

    • 7,403 miles
    • 1 accident, 1 owner, personal use only
    • 5 Seats, 21 City / 25 Hwy MPG
    • Carvana - Dallas (26 mi away)
    • Home delivery*
    • AWD/4WD
    • Back-up camera
    • Bluetooth
    • Navigation
    • Sunroof/Moonroof
    Close

    Located in Dallas, TX / 26 miles away from McKinney, TX

    At Carvana, we go miles beyond the extra mile. That's why we provide you with a convenient, fast, and hassle-free car buying experience that puts you ...

    AutoCheck Vehicle History Summary

    Accident Free Vehicle: No

    Personal Use Only: Yes

    History Provider: AutoCheck

    Title Details: Clean Title

    Salvage Vehicle: No

    Frame Damage: No

    Theft History: No

    Lemon Status: No

    Free History Report: No

    Features and Specs:

    23 Combined MPG (21 City/25 Highway)

    Listing Information:

    VIN: 5UXCR6C05P9P77022
    Stock: 2003296459
    Certified Pre-Owned: No
    Listed since: 12-27-2024

    • 30,076 miles
    • No accidents, 1 owner, personal use only
    • 5 Seats, 21 City / 25 Hwy MPG
    • Toyota of Dallas (21 mi away)
    • AWD/4WD
    • Back-up camera
    • Bluetooth
    • Navigation
    • Sunroof/Moonroof
    Close

    Located in Dallas, TX / 21 miles away from McKinney, TX

    Conquer Every Terrain with Confidence in the 2023 BMW X5 xDrive40i Where Luxury Meets Performance in a Sleek Mineral White Metallic Finish Experience ...

    AutoCheck Vehicle History Summary

    Accident Free Vehicle: Yes

    Personal Use Only: Yes

    History Provider: AutoCheck

    Title Details: Clean Title

    Salvage Vehicle: No

    Frame Damage: No

    Theft History: No

    Lemon Status: No

    Free History Report: No

    Features and Specs:

    23 Combined MPG (21 City/25 Highway)

    Listing Information:

    VIN: 5UXCR6C05P9R55396
    Stock: P9R55396
    Certified Pre-Owned: No
    Listed since: 06-04-2025

    • 58,147 miles
    • No accidents, 2 owners, personal use
    • 5 Seats, 21 City / 26 Hwy MPG
    • Sewell Lexus of Dallas (24 mi away)
    • Back-up camera
    • Bluetooth
    • Navigation
    • Sunroof/Moonroof
    • Keyless Entry/Start
    Close

    Located in Dallas, TX / 24 miles away from McKinney, TX

    Sewell Lexus of Dallas proudly offers this 2021 BMW X5 sDrive40i Rear Wheel Drive that has been professionally inspected by one of our Sewell technici...

    AutoCheck Vehicle History Summary

    Accident Free Vehicle: Yes

    Personal Use Only: Yes

    History Provider: AutoCheck

    Title Details: Clean Title

    Salvage Vehicle: No

    Frame Damage: No

    Theft History: No

    Lemon Status: No

    Free History Report: No

    Features and Specs:

    23 Combined MPG (21 City/26 Highway)

    Listing Information:

    VIN: 5UXCR4C03M9G66357
    Stock: 453245B
    Certified Pre-Owned: No
    Listed since: 06-15-2025

    • 39,496 miles
    • No accidents, 1 owner, personal use only
    • 5 Seats, 21 City / 26 Hwy MPG
    • MINI of Plano (10 mi away)
    • Back-up camera
    • Bluetooth
    • Navigation
    • Sunroof/Moonroof
    • Keyless Entry/Start
    Close

    Located in Plano, TX / 10 miles away from McKinney, TX

    Sewell BMW MINI of Plano proudly offers this 2021 BMW X5 sDrive40i Rear Wheel Drive that has been professionally inspected by one of our Sewell techni...

    AutoCheck Vehicle History Summary

    Accident Free Vehicle: Yes

    Personal Use Only: Yes

    History Provider: AutoCheck

    Title Details: Clean Title

    Salvage Vehicle: No

    Frame Damage: No

    Theft History: No

    Lemon Status: No

    Free History Report: No

    Features and Specs:

    23 Combined MPG (21 City/26 Highway)

    Listing Information:

    VIN: 5UXCR4C01M9G16069
    Stock: 5339141A
    Certified Pre-Owned: No
    Listed since: 05-02-2025

    • 45,537 miles
    • No accidents, 1 owner, personal use
    • 5 Seats, 21 City / 25 Hwy MPG
    • Carvana - Dallas (26 mi away)
    • Home delivery*
    • AWD/4WD
    • Back-up camera
    • Bluetooth
    • Navigation
    • Sunroof/Moonroof
    Close

    Located in Dallas, TX / 26 miles away from McKinney, TX

    At Carvana, we go miles beyond the extra mile. That's why we provide you with a convenient, fast, and hassle-free car buying experience that puts you ...

    AutoCheck Vehicle History Summary

    Accident Free Vehicle: Yes

    Personal Use Only: Yes

    History Provider: AutoCheck

    Title Details: Clean Title

    Salvage Vehicle: No

    Frame Damage: No

    Theft History: No

    Lemon Status: No

    Free History Report: No

    Features and Specs:

    23 Combined MPG (21 City/25 Highway)

    Listing Information:

    VIN: 5UXCR6C05P9P80289
    Stock: 2003769093
    Certified Pre-Owned: No
    Listed since: 06-02-2025

  • New Listing
    • 29,229 miles
    • 5 Seats, 21 City / 25 Hwy MPG
    • Platinum Chevrolet (37 mi away)
    • AWD/4WD
    • Back-up camera
    • Bluetooth
    • Navigation
    • Leather Seats
    Close

    Located in Terrell, TX / 37 miles away from McKinney, TX

    2021 BMW X5 xDrive40i AWD M Sport Package, One Owner, Low MilesIf you're looking for clean luxury with aggressive performance styling, this 2021 BM...

    AutoCheck Vehicle History Summary Unavailable.

    Features and Specs:

    23 Combined MPG (21 City/25 Highway)

    Listing Information:

    VIN: 5UXCR6C0XM9H68458
    Stock: T251138A
    Certified Pre-Owned: No
    Listed since: 07-12-2025

  • New Listing
    • 25,922 miles
    • No accidents, 1 owner, personal use only
    • 5 Seats, 21 City / 25 Hwy MPG
    • Southwest Ford (65 mi away)
    • AWD/4WD
    • Back-up camera
    • Bluetooth
    • Navigation
    • Sunroof/Moonroof
    Close

    Located in Hudson Oaks, TX / 65 miles away from McKinney, TX

    Coffee Premium Synthetic. CARFAX One-Owner. Clean CARFAX.Call or email to check availability. Ask about the SouthWest Connect. ***817-438-2981***T...

    AutoCheck Vehicle History Summary

    Accident Free Vehicle: Yes

    Personal Use Only: Yes

    History Provider: AutoCheck

    Title Details: Clean Title

    Salvage Vehicle: No

    Frame Damage: No

    Theft History: No

    Lemon Status: No

    Free History Report: No

    Features and Specs:

    23 Combined MPG (21 City/25 Highway)

    Listing Information:

    VIN: 5UXCR6C02P9N65873
    Stock: 250860A
    Certified Pre-Owned: No
    Listed since: 04-26-2025

  • New Listing
    $39,990
    good price
    $3,833 below market
    • 40,375 miles
    • No accidents, 3 owners, personal use only
    • 31 mi est. electric range
    • 5 Seats, 19 City / 22 Hwy MPG
    • Carvana (In-stock online)
    • Home delivery*
    • AWD/4WD
    • Back-up camera
    • Bluetooth
    • Navigation
    • Sunroof/Moonroof
    Close

    Located in Phoenix, AZ / 886 miles away from McKinney, TX

    At Carvana, we go miles beyond the extra mile. That's why we provide you with a convenient, fast, and hassle-free car buying experience that puts you ...

    AutoCheck Vehicle History Summary

    Accident Free Vehicle: Yes

    Personal Use Only: Yes

    History Provider: AutoCheck

    Title Details: Clean Title

    Salvage Vehicle: No

    Frame Damage: No

    Theft History: No

    Lemon Status: No

    Free History Report: No

    Features and Specs:

    20 Combined MPG (19 City/22 Highway)

    Listing Information:

    VIN: 5UXTA6C00M9G92658
    Stock: 2003663835
    Certified Pre-Owned: No
    Listed since: 04-18-2025

    • 48,972 miles
    • No accidents, 1 owner, rental vehicle
    • 5 Seats, 21 City / 25 Hwy MPG
    • Clay Cooley Ford (36 mi away)
    • AWD/4WD
    • Back-up camera
    • Bluetooth
    • Navigation
    • Sunroof/Moonroof
    Close

    Located in Arlington, TX / 36 miles away from McKinney, TX

    Clay Cooley Auto Group is the home of the Clay Cooley Family Guarantee and offers a 3-DAY MONEY BACK GUARANTEE which means you can return the brand ne...

    AutoCheck Vehicle History Summary

    Accident Free Vehicle: Yes

    Personal Use Only: No

    History Provider: AutoCheck

    Title Details: Clean Title

    Salvage Vehicle: No

    Frame Damage: No

    Theft History: No

    Lemon Status: No

    Free History Report: No

    Features and Specs:

    23 Combined MPG (21 City/25 Highway)

    Listing Information:

    VIN: 5UXCR6C08P9P89973
    Stock: P9P89973
    Certified Pre-Owned: No
    Listed since: 06-10-2025

    • 95,774 miles
    • No accidents, 2 owners, personal use
    • 5 Seats, 20 City / 26 Hwy MPG
    • Texas Autos Direct (26 mi away)
    • AWD/4WD
    • Back-up camera
    • Bluetooth
    • Navigation
    • Sunroof/Moonroof
    Close

    Located in Mesquite, TX / 26 miles away from McKinney, TX

    AutoCheck Vehicle History Summary

    Accident Free Vehicle: Yes

    Personal Use Only: Yes

    History Provider: AutoCheck

    Title Details: Clean Title

    Salvage Vehicle: No

    Frame Damage: No

    Theft History: No

    Lemon Status: No

    Free History Report: No

    Features and Specs:

    22 Combined MPG (20 City/26 Highway)

    Listing Information:

    VIN: 5UXCR6C5XKLL61507
    Stock: L61507
    Certified Pre-Owned: No
    Listed since: 03-12-2025

    • 56,684 miles
    • No accidents, 1 owner, personal use
    • 5 Seats, 21 City / 26 Hwy MPG
    • Hi-Line Motors (12 mi away)
    • Back-up camera
    • Bluetooth
    • Navigation
    • Sunroof/Moonroof
    • Keyless Entry/Start
    Close

    Located in Plano, TX / 12 miles away from McKinney, TX

    The 2023 BMW X5 sDrive40i Sports Activity Vehicle, with its striking Phytonic Blue Metallic exterior, is a testament to luxury and performance combine...

    AutoCheck Vehicle History Summary

    Accident Free Vehicle: Yes

    Personal Use Only: Yes

    History Provider: AutoCheck

    Title Details: Clean Title

    Salvage Vehicle: No

    Frame Damage: No

    Theft History: No

    Lemon Status: No

    Free History Report: No

    Features and Specs:

    23 Combined MPG (21 City/26 Highway)

    Listing Information:

    VIN: 5UXCR4C00P9R08507
    Stock: R08507
    Certified Pre-Owned: No
    Listed since: 05-28-2025

    • 55,926 miles
    • No accidents, 2 owners, personal use
    • 5 Seats, 17 City / 22 Hwy MPG
    • Carvana - Dallas (26 mi away)
    • Home delivery*
    • AWD/4WD
    • Back-up camera
    • Bluetooth
    • Navigation
    • Leather Seats
    Close

    Located in Dallas, TX / 26 miles away from McKinney, TX

    At Carvana, we go miles beyond the extra mile. That's why we provide you with a convenient, fast, and hassle-free car buying experience that puts you ...

    AutoCheck Vehicle History Summary

    Accident Free Vehicle: Yes

    Personal Use Only: Yes

    History Provider: AutoCheck

    Title Details: Clean Title

    Salvage Vehicle: No

    Frame Damage: No

    Theft History: No

    Lemon Status: No

    Free History Report: No

    Features and Specs:

    19 Combined MPG (17 City/22 Highway)

    Listing Information:

    VIN: 5UXJU2C54KLN67436
    Stock: 2003784829
    Certified Pre-Owned: No
    Listed since: 06-07-2025

  • New Listing
    • 42,136 miles
    • No accidents, 1 owner, personal use
    • 5 Seats, 20 City / 26 Hwy MPG
    • Carvana - Dallas (26 mi away)
    • Home delivery*
    • AWD/4WD
    • Back-up camera
    • Bluetooth
    • Navigation
    • Sunroof/Moonroof
    Close

    Located in Dallas, TX / 26 miles away from McKinney, TX

    At Carvana, we go miles beyond the extra mile. That's why we provide you with a convenient, fast, and hassle-free car buying experience that puts you ...

    AutoCheck Vehicle History Summary

    Accident Free Vehicle: Yes

    Personal Use Only: Yes

    History Provider: AutoCheck

    Title Details: Clean Title

    Salvage Vehicle: No

    Frame Damage: No

    Theft History: No

    Lemon Status: No

    Free History Report: No

    Features and Specs:

    22 Combined MPG (20 City/26 Highway)

    Listing Information:

    VIN: 5UXCR6C53KLL63275
    Stock: 2003774883
    Certified Pre-Owned: No
    Listed since: 05-30-2025

  • New Listing
    • 18,851 miles
    • No accidents, 1 owner, personal use only
    • 5 Seats, 21 City / 26 Hwy MPG
    • BMW of Dallas (24 mi away)
    • Home delivery*
    • Back-up camera
    • Bluetooth
    • Navigation
    • Sunroof/Moonroof
    • Keyless Entry/Start
    Close

    Located in Dallas, TX / 24 miles away from McKinney, TX

    Wheels: 21" X 9.5" Fr & 21" X 10.5" Rr Bi-ColorPremium PackageParking Assistance Package4-Zone Automatic Climate ControlAnthracite Alcantara Headl...

    AutoCheck Vehicle History Summary

    Accident Free Vehicle: Yes

    Personal Use Only: Yes

    History Provider: AutoCheck

    Title Details: Clean Title

    Salvage Vehicle: No

    Frame Damage: No

    Theft History: No

    Lemon Status: No

    Free History Report: No

    Features and Specs:

    23 Combined MPG (21 City/26 Highway)

    Listing Information:

    VIN: 5UXCR4C02P9N55848
    Stock: P9N55848
    Certified Pre-Owned: Yes
    Listed since: 06-30-2025

    • 55,410 miles
    • No accidents, 1 owner, personal use only
    • 5 Seats, 21 City / 25 Hwy MPG
    • Premier Autos of Dallas (17 mi away)
    • AWD/4WD
    • Back-up camera
    • Bluetooth
    • Navigation
    • Sunroof/Moonroof
    Close

    Located in Addison, TX / 17 miles away from McKinney, TX

    2021 BMW X5 xDrive40i Precision Meets PracticalityRecent Arrival! The 2021 BMW X5 xDrive40i seamlessly combines the luxury of a high-end SUV with BMW ...

    AutoCheck Vehicle History Summary

    Accident Free Vehicle: Yes

    Personal Use Only: Yes

    History Provider: AutoCheck

    Title Details: Clean Title

    Salvage Vehicle: No

    Frame Damage: No

    Theft History: No

    Lemon Status: No

    Free History Report: No

    Features and Specs:

    23 Combined MPG (21 City/25 Highway)

    Listing Information:

    VIN: 5UXCR6C04M9D86538
    Stock: XD86538
    Certified Pre-Owned: No
    Listed since: 10-27-2024

  • Price Drop
    $37,998
    good price
    $2,288 below market
    • 37,040 miles
    • No accidents, 2 owners, personal use
    • 5 Seats, 21 City / 25 Hwy MPG
    • CarMax (In-stock online)
    • Transfer available from CA to TX*
    • AWD/4WD
    • Back-up camera
    • Bluetooth
    • Navigation
    • Sunroof/Moonroof
    Close

    Located in Fresno, CA / 1,329 miles away from McKinney, TX

    CarMax values transparency and wants you to love your next car, not settle on it. Certain vehicles may have unrepaired safety recalls. Check nhtsa.gov...

    AutoCheck Vehicle History Summary

    Accident Free Vehicle: Yes

    Personal Use Only: Yes

    History Provider: AutoCheck

    Title Details: Clean Title

    Salvage Vehicle: No

    Frame Damage: No

    Theft History: No

    Lemon Status: No

    Free History Report: Yes

    Features and Specs:

    23 Combined MPG (21 City/25 Highway)

    Listing Information:

    VIN: 5UXCR6C09M9D94845
    Stock: 27288993
    Certified Pre-Owned: No

  • New Listing
    $37,998
    fair price
    $139 above market
    • 34,190 miles
    • No accidents, 1 owner, personal use only
    • 5 Seats, 21 City / 26 Hwy MPG
    • CarMax (In-stock online)
    • Transfer available from CA to TX*
    • Back-up camera
    • Bluetooth
    • Navigation
    • Sunroof/Moonroof
    • Keyless Entry/Start
    Close

    Located in Duarte, CA / 1,224 miles away from McKinney, TX

    CarMax values transparency and wants you to love your next car, not settle on it. Certain vehicles may have unrepaired safety recalls. Check nhtsa.gov...

    AutoCheck Vehicle History Summary

    Accident Free Vehicle: Yes

    Personal Use Only: Yes

    History Provider: AutoCheck

    Title Details: Clean Title

    Salvage Vehicle: No

    Frame Damage: No

    Theft History: No

    Lemon Status: No

    Free History Report: No

    Features and Specs:

    23 Combined MPG (21 City/26 Highway)

    Listing Information:

    VIN: 5UXCR4C02M9E97707
    Stock: 27483496
    Certified Pre-Owned: No

    • 28,001 miles
    • No accidents, 2 owners, personal use
    • 5 Seats, 21 City / 26 Hwy MPG
    • RideNDrive (21 mi away)
    • Home delivery*
    • Back-up camera
    • Bluetooth
    • Navigation
    • Sunroof/Moonroof
    • Keyless Entry/Start
    Close

    Located in Garland, TX / 21 miles away from McKinney, TX

    Phytonic Blue Metallic 2023 BMW X5 sDrive40i 3.0L I6 DOHC 24V TwinPower Turbo 8-Speed Automatic SportCARFAX One-Owner.70K MSRP, M SPORT PKG($3300)...

    AutoCheck Vehicle History Summary

    Accident Free Vehicle: Yes

    Personal Use Only: Yes

    History Provider: AutoCheck

    Title Details: Clean Title

    Salvage Vehicle: No

    Frame Damage: No

    Theft History: No

    Lemon Status: No

    Free History Report: No

    Features and Specs:

    23 Combined MPG (21 City/26 Highway)

    Listing Information:

    VIN: 5UXCR4C0XP9N46928
    Stock: N46928
    Certified Pre-Owned: No
    Listed since: 05-08-2025

  • Price Drop
    $41,998
    good price
    $2,070 below market
    • 37,908 miles
    • No accidents, 1 owner, personal use
    • 5 Seats, 21 City / 25 Hwy MPG
    • CarMax (In-stock online)
    • Transfer available from CA to TX*
    • AWD/4WD
    • Back-up camera
    • Bluetooth
    • Navigation
    • Leather Seats
    Close

    Located in Sacramento, CA / 1,428 miles away from McKinney, TX

    CarMax values transparency and wants you to love your next car, not settle on it. Certain vehicles may have unrepaired safety recalls. Check nhtsa.gov...

    AutoCheck Vehicle History Summary

    Accident Free Vehicle: Yes

    Personal Use Only: Yes

    History Provider: AutoCheck

    Title Details: Clean Title

    Salvage Vehicle: No

    Frame Damage: No

    Theft History: No

    Lemon Status: No

    Free History Report: No

    Features and Specs:

    23 Combined MPG (21 City/25 Highway)

    Listing Information:

    VIN: 5UXCR6C05M9F75800
    Stock: 27457710
    Certified Pre-Owned: No

    • 51,902 miles
    • No accidents, 1 owner, rental vehicle
    • 5 Seats, 21 City / 26 Hwy MPG
    • Moritz Kia Alliance (39 mi away)
    • Back-up camera
    • Bluetooth
    • Navigation
    • Sunroof/Moonroof
    • Keyless Entry/Start
    Close

    Located in Fort Worth, TX / 39 miles away from McKinney, TX

    The Moritz Promise LIMITED LIFETIME POWERTRAIN PROTECTION Plan See dealer for details, Sunroof, Power Lift Gate, Backup Camera, Remote Start, Cruise C...

    AutoCheck Vehicle History Summary

    Accident Free Vehicle: Yes

    Personal Use Only: No

    History Provider: AutoCheck

    Title Details: Clean Title

    Salvage Vehicle: No

    Frame Damage: No

    Theft History: No

    Lemon Status: No

    Free History Report: No

    Features and Specs:

    23 Combined MPG (21 City/26 Highway)

    Listing Information:

    VIN: 5UXCR4C08P9P25369
    Stock: R4577
    Certified Pre-Owned: No
    Listed since: 05-12-2025

  • New Listing
    $36,998
    fair price
    $320 above market
    • 34,289 miles
    • No accidents, 1 owner, personal use only
    • 5 Seats, 21 City / 26 Hwy MPG
    • CarMax (In-stock online)
    • Transfer available from CA to TX*
    • Back-up camera
    • Bluetooth
    • Navigation
    • Sunroof/Moonroof
    • Keyless Entry/Start
    Close

    Located in Murrieta, CA / 1,181 miles away from McKinney, TX

    CarMax values transparency and wants you to love your next car, not settle on it. Certain vehicles may have unrepaired safety recalls. Check nhtsa.gov...

    AutoCheck Vehicle History Summary

    Accident Free Vehicle: Yes

    Personal Use Only: Yes

    History Provider: AutoCheck

    Title Details: Clean Title

    Salvage Vehicle: No

    Frame Damage: No

    Theft History: No

    Lemon Status: No

    Free History Report: No

    Features and Specs:

    23 Combined MPG (21 City/26 Highway)

    Listing Information:

    VIN: 5UXCR4C07M9G60125
    Stock: 27001972
    Certified Pre-Owned: No

Showing 64 - 84 out of 1,027 listings

Consumer Reviews for the BMW X5

Read recent reviews for the BMW X5
Overall Consumer Rating
4.1 out of 5 stars33 Reviews
Write a vehicle reviewSee all 33 reviews
  • 5 star
    (67%)
  • 4 star
    (9%)
  • 3 star
    (6%)
  • 2 star
    (3%)
  • 1 star
    (15%)
5 out of 5 stars

Real electric range, highly refined

Steven, 02/11/2021
2021 BMW X5 xDrive45e 4dr SUV AWD (3.0L 6cyl Turbo gas/electric plug-in hybrid 8A)
The X5 45e is an outstanding compromise between the convenience, efficiency and joy of an everyday electric car and the traditional performance and range of a BMW inline 6. Pretty much all electric most days, and the integration of electric and gas is excellent - almost imperceptible when gas engine kicks in. BMW iDrive and driving assistant tech is excellent. Fit and finish outstanding. … High voltage battery is big enough that this car earns same $7500 tax credit as full electric cars, making it an outstanding value over every other model X5.
Report abuse

Used 2023 BMW X5 in McKinney, TX Values

Estimated values
2023 BMW X5 xDrive40i 4dr SUV AWD (3.0L 6cyl Turbo gas/electric mild hybrid 8A) with no options
ConditionTrade-InPrivate PartyDealer Retail
Outstanding$35,920$38,353$41,097
Clean$35,515$37,890$40,569
Average$34,841$37,119$39,688
Rough$33,964$36,117$38,543

The average list price of a used 2023 BMW X5 in McKinney, Texas is $40,653. The average mileage on a used BMW X5 2023 for sale in McKinney, Texas is 41,584. Based on the average mileage of 41,584 for used 2023 BMW X5 for sale in McKinney, TX and using an average vehicle condition rating, which means the vehicle may have a few mechanical and/or cosmetic problems and may require a considerable amount of reconditioning, we appraise the average trade-in value of a used BMW X5 2023 in McKinney, Texas to be $34,841.

Filters
Skip to Results

Applied Filters4Active

Select Buying Experience

Location

Search radius100 miles
Search radius

Make & Model

Year

New / Used

Price & Payments

Price Rating

Body Type

Trim

Mileage

Accidents & History

EV Details

Engine & Drivetrain

Exterior Color

Interior Color

Total Seating

Edmunds Review

Features

Options & Packages

MPG

Listing Details


* Delivery of any kind does not apply to Alaska and Hawaii. Contact the dealer for delivery details, restrictions and costs.