Skip to main content
Skip to Filters
126 listings
  • Price Drop
    $36,275
    good price
    $2,275 below market
    • 40,015 miles
    • No accidents, 1 owner, personal use
    • 5 Seats, 21 City / 28 Hwy MPG
    • Audi North Scottsdale (25 mi away)
    • AWD/4WD
    • Back-up camera
    • Bluetooth
    • Navigation
    • Sunroof/Moonroof
    Close

    Located in Phoenix, AZ / 25 miles away from Gilbert, AZ

    X4 xDrive30i, 4D Sport Utility, AWD, 12 Speakers, 3.39 Axle Ratio, 4-Wheel Disc Brakes, ABS brakes, Air Conditioning, Alloy wheels, AM/FM radio: Siriu...

    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:

    24 Combined MPG (21 City/28 Highway)

    Listing Information:

    VIN: 5UX33DT0XN9J46513
    Stock: ZDP2334
    Certified Pre-Owned: No
    Listed since: 05-06-2025

  • Price Drop
    $35,500
    fair price
    $162 above market
    • 48,084 miles
    • No accidents, 1 owner, personal use
    • 5 Seats, 21 City / 28 Hwy MPG
    • Volkswagen North Scottsdale (26 mi away)
    • AWD/4WD
    • Back-up camera
    • Bluetooth
    • Navigation
    • Sunroof/Moonroof
    Close

    Located in Phoenix, AZ / 26 miles away from Gilbert, AZ

    ONE OWNER, CLEAN CARFAX, 12 Speakers, Apple CarPlay & Android Auto Compatibility, Connected Package Pro, Enhanced Bluetooth, Exterior Parking Camera R...

    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:

    24 Combined MPG (21 City/28 Highway)

    Listing Information:

    VIN: 5UX33DT00N9M21418
    Stock: ZWP2402
    Certified Pre-Owned: No
    Listed since: 05-07-2025

    • 34,082 miles
    • No accidents, 2 owners, personal use
    • 5 Seats, 21 City / 27 Hwy MPG
    • BMW North Scottsdale (26 mi away)
    • AWD/4WD
    • Back-up camera
    • Bluetooth
    • Navigation
    • Sunroof/Moonroof
    Close

    Located in Phoenix, AZ / 26 miles away from Gilbert, AZ

    Clean CARFAX. 21/27 City/Highway MPG ** JUST ARRIVED ** This vehicle is fresh to our inventory and may NOT BE READY for seeing or driving. However, it...

    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/27 Highway)

    Listing Information:

    VIN: 5UX2V5C01LLE69427
    Stock: BL1046A
    Certified Pre-Owned: No
    Listed since: 06-04-2025

  • Price Drop
    $28,788
    good price
    $2,964 below market
    • 60,608 miles
    • No accidents, 3 owners, personal use
    • 5 Seats, 23 City / 29 Hwy MPG
    • Van Chevrolet Buick GMC (24 mi away)
    • AWD/4WD
    • Back-up camera
    • Bluetooth
    • Navigation
    • Sunroof/Moonroof
    Close

    Located in Scottsdale, AZ / 24 miles away from Gilbert, AZ

    Clean CARFAX. Alpine White 2021 BMW X4 xDrive30i AWD 8-Speed Automatic Sport 2.0L I4 TwinPower TurboInventory reduction sales this weekend only !! 100...

    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:

    25 Combined MPG (23 City/29 Highway)

    Listing Information:

    VIN: 5UX2V1C03M9E92621
    Stock: P26439A
    Certified Pre-Owned: No
    Listed since: 04-22-2025

  • $41,590
    good price
    $1,513 below market
    • 40,884 miles
    • No accidents, 1 owner, personal use only
    • 5 Seats, 21 City / 28 Hwy MPG
    • Carvana - Phoenix (25 mi away)
    • Home delivery*
    • AWD/4WD
    • Back-up camera
    • Bluetooth
    • Navigation
    • Sunroof/Moonroof
    Close

    Located in Phoenix, AZ / 25 miles away from Gilbert, AZ

    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:

    24 Combined MPG (21 City/28 Highway)

    Listing Information:

    VIN: 5UX33DT09P9P11689
    Stock: 2003743147
    Certified Pre-Owned: No
    Listed since: 05-17-2025

  • $29,177
    fair price
    $160 above market
    • 41,904 miles
    • No accidents, 3 owners, personal use
    • 5 Seats, 22 City / 29 Hwy MPG
    • Liberty GMC (37 mi away)
    • AWD/4WD
    • Back-up camera
    • Bluetooth
    • Navigation
    • Sunroof/Moonroof
    Close

    Located in Peoria, AZ / 37 miles away from Gilbert, AZ

    Black Sapphire Metallic 2019 BMW X4 xDrive30i AWD 8-Speed Automatic Sport 2.0L I4 TwinPower TurboOdometer is 17847 miles below market average! 22/29 C...

    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:

    25 Combined MPG (22 City/29 Highway)

    Listing Information:

    VIN: 5UXUJ3C53KLG56123
    Stock: G51049C
    Certified Pre-Owned: No
    Listed since: 05-20-2025

  • $51,894
    fair price
    $1,562 above market
    • 17,770 miles
    • No accidents, 1 owner, personal use only
    • 5 Seats, 21 City / 28 Hwy MPG
    • Arrowhead BMW (37 mi away)
    • AWD/4WD
    • Back-up camera
    • Bluetooth
    • Navigation
    • Sunroof/Moonroof
    Close

    Located in Glendale, AZ / 37 miles away from Gilbert, AZ

    Recent Arrival! Certified.This 2023 Brooklyn Gray Metallic BMW X4 xDrive30i AWD is well equipped and includes these features and benefits:CARFAX 1...

    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:

    24 Combined MPG (21 City/28 Highway)

    Listing Information:

    VIN: 5UX33DT09P9S51174
    Stock: R2140676A
    Certified Pre-Owned: Yes
    Listed since: 06-06-2025

  • Price Drop
    $29,876
    fair price
    $590 above market
    • 72,909 miles
    • No accidents, 1 owner, personal use
    • 5 Seats, 20 City / 27 Hwy MPG
    • BMW North Scottsdale (26 mi away)
    • AWD/4WD
    • Back-up camera
    • Bluetooth
    • Navigation
    • Sunroof/Moonroof
    Close

    Located in Phoenix, AZ / 26 miles away from Gilbert, AZ

    4WD/AWD, X4 M40i Executive, Premium & Driver Assistance, 4D Sport Utility, 3.0L I6 Turbocharged DOHC 24V LEV3-ULEV70 355hp, 8-Speed Automatic Sport, A...

    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 (20 City/27 Highway)

    Listing Information:

    VIN: 5UXUJ5C59KLJ64401
    Stock: B42522A
    Certified Pre-Owned: No
    Listed since: 05-14-2025

  • Price Drop
    $42,998
    fair price
    $541 above market
    • 27,279 miles
    • No accidents, 3 owners, personal use only
    • 5 Seats, 21 City / 27 Hwy MPG
    • CarMax (In-stock online)
    • Transfer available from FL to AZ*
    • AWD/4WD
    • Back-up camera
    • Bluetooth
    • Navigation
    • Sunroof/Moonroof
    Close

    Located in Fort Myers, FL / 1,841 miles away from Gilbert, AZ

    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/27 Highway)

    Listing Information:

    VIN: 5UX2V5C06M9E87386
    Stock: 27312960
    Certified Pre-Owned: No

  • New Listing
    $38,998
    fair price
    • 38,229 miles
    • 1 accident, 1 owner, personal use
    • 5 Seats, 21 City / 27 Hwy MPG
    • CarMax (In-stock online)
    • Transfer available from TX to AZ*
    • AWD/4WD
    • Back-up camera
    • Bluetooth
    • Navigation
    • Sunroof/Moonroof
    Close

    Located in Houston, TX / 1,005 miles away from Gilbert, AZ

    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: 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/27 Highway)

    Listing Information:

    VIN: 5UX2V5C06M9F54553
    Stock: 27480610
    Certified Pre-Owned: No

    • 7,803 miles
    • No accidents, 1 owner, personal use only
    • 5 Seats, 23 City / 29 Hwy MPG
    • CarMax (In-stock online)
    • Transfer available from CA to AZ*
    • AWD/4WD
    • Back-up camera
    • Bluetooth
    • Navigation
    • Sunroof/Moonroof
    Close

    Located in Canoga Park, CA / 399 miles away from Gilbert, AZ

    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:

    25 Combined MPG (23 City/29 Highway)

    Listing Information:

    VIN: 5UX2V1C00M9H38136
    Stock: 26946380
    Certified Pre-Owned: No

  • Price Drop
    • 10,431 miles
    • No accidents, 1 owner, personal use only
    • 5 Seats, 21 City / 27 Hwy MPG
    • CarMax (In-stock online)
    • Transfer available from CA to AZ*
    • AWD/4WD
    • Back-up camera
    • Bluetooth
    • Navigation
    • Sunroof/Moonroof
    Close

    Located in Fairfield, CA / 672 miles away from Gilbert, AZ

    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/27 Highway)

    Listing Information:

    VIN: 5UX2V5C09M9F38119
    Stock: 26541484
    Certified Pre-Owned: No

  • Price Drop
    • 44,165 miles
    • No accidents, 1 owner, personal use only
    • 5 Seats, 21 City / 28 Hwy MPG
    • Arrowhead BMW (37 mi away)
    • AWD/4WD
    • Back-up camera
    • Bluetooth
    • Navigation
    • Sunroof/Moonroof
    Close

    Located in Glendale, AZ / 37 miles away from Gilbert, AZ

    This 2023 Black Sapphire Metallic BMW X4 xDrive30i AWD is well equipped and includes these features and benefits:CARFAX 1 Owner, M SPORT PACKAGE, CO...

    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:

    24 Combined MPG (21 City/28 Highway)

    Listing Information:

    VIN: 5UX33DT04P9R45979
    Stock: SA308062C
    Certified Pre-Owned: No
    Listed since: 05-19-2025

  • Price Drop
    • 27,509 miles
    • No accidents, 1 owner, personal use
    • 5 Seats, 23 City / 29 Hwy MPG
    • CarMax (In-stock online)
    • Transfer available from DE to AZ*
    • AWD/4WD
    • Back-up camera
    • Bluetooth
    • Navigation
    • Sunroof/Moonroof
    Close

    Located in Newark, DE / 2,033 miles away from Gilbert, AZ

    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:

    25 Combined MPG (23 City/29 Highway)

    Listing Information:

    VIN: 5UX2V1C06M9F25725
    Stock: 27301606
    Certified Pre-Owned: No

  • New Listing
    • 36,353 miles
    • No accidents, 2 owners, corporate fleet vehicle
    • 5 Seats, 23 City / 29 Hwy MPG
    • CarMax (In-stock online)
    • Transfer available from NC to AZ*
    • AWD/4WD
    • Back-up camera
    • Bluetooth
    • Navigation
    • Sunroof/Moonroof
    Close

    Located in Charlotte, NC / 1,768 miles away from Gilbert, AZ

    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: 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:

    25 Combined MPG (23 City/29 Highway)

    Listing Information:

    VIN: 5UX2V1C03M9E06918
    Stock: 27081598
    Certified Pre-Owned: No

  • Price Drop
    • 37,745 miles
    • No accidents, 1 owner, personal use only
    • 5 Seats, 23 City / 29 Hwy MPG
    • Driveway (In-stock online)
    • Home delivery*
    • AWD/4WD
    • Back-up camera
    • Bluetooth
    • Navigation
    • Leather Seats
    Close

    Located in Minnetonka, MN / 1,260 miles away from Gilbert, AZ

    CarFax No Accidents Reported,CarFax 1-Owner,Rare Find,Automatic Parking,Back-Up Camera,Blind Spot Monitor,Bluetooth,Brake Assist,Hands-Free Liftgate,H...

    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:

    25 Combined MPG (23 City/29 Highway)

    Listing Information:

    VIN: 5UX2V1C01M9H20762
    Stock: S9021820A
    Certified Pre-Owned: No

  • New Listing
    • 43,007 miles
    • No accidents, 3 owners, personal use
    • 5 Seats, 21 City / 27 Hwy MPG
    • Carvana (In-stock online)
    • Home delivery*
    • AWD/4WD
    • Back-up camera
    • Bluetooth
    • Navigation
    • Sunroof/Moonroof
    Close

    Located in Memphis, TN / 1,250 miles away from Gilbert, AZ

    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/27 Highway)

    Listing Information:

    VIN: 5UX2V5C00M9H95363
    Stock: 2003804660
    Certified Pre-Owned: No
    Listed since: 06-07-2025

  • New Listing
    • 44,342 miles
    • No accidents, 1 owner, personal use
    • 5 Seats, 21 City / 27 Hwy MPG
    • CarMax (In-stock online)
    • Transfer available from MD to AZ*
    • AWD/4WD
    • Back-up camera
    • Bluetooth
    • Navigation
    • Leather Seats
    Close

    Located in Ellicott City, MD / 1,975 miles away from Gilbert, AZ

    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/27 Highway)

    Listing Information:

    VIN: 5UX2V5C02M9F37815
    Stock: 26881562
    Certified Pre-Owned: No

    • 45,941 miles
    • 1 accident, 1 owner, personal use
    • 5 Seats, 21 City / 28 Hwy MPG
    • Arrowhead BMW (37 mi away)
    • AWD/4WD
    • Back-up camera
    • Bluetooth
    • Navigation
    • Sunroof/Moonroof
    Close

    Located in Glendale, AZ / 37 miles away from Gilbert, AZ

    Recent Arrival! Certified.This 2023 Alpine White BMW X4 xDrive30i AWD is well equipped and includes these features and benefits:CARFAX 1 Owner, M ...

    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:

    24 Combined MPG (21 City/28 Highway)

    Listing Information:

    VIN: 5UX33DT04P9P09915
    Stock: P16781
    Certified Pre-Owned: Yes
    Listed since: 05-30-2025

  • New Listing
    • 31,255 miles
    • 5 Seats, 23 City / 29 Hwy MPG
    • CarMax (In-stock online)
    • Transfer available from FL to AZ*
    • AWD/4WD
    • Back-up camera
    • Bluetooth
    • Navigation
    • Sunroof/Moonroof
    Close

    Located in Doral, FL / 1,948 miles away from Gilbert, AZ

    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 Unavailable.

    Features and Specs:

    25 Combined MPG (23 City/29 Highway)

    Listing Information:

    VIN: 5UX2V1C01M9G21214
    Stock: 27496506
    Certified Pre-Owned: No

  • New Listing
    • 42,039 miles
    • 5 Seats, 23 City / 29 Hwy MPG
    • CarMax (In-stock online)
    • Transfer available from VA to AZ*
    • AWD/4WD
    • Back-up camera
    • Bluetooth
    • Navigation
    • Sunroof/Moonroof
    Close

    Located in Richmond, VA / 1,933 miles away from Gilbert, AZ

    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 Unavailable.

    Features and Specs:

    25 Combined MPG (23 City/29 Highway)

    Listing Information:

    VIN: 5UX2V1C04M9D97002
    Stock: 26924765
    Certified Pre-Owned: No

Showing 1 - 21 out of 126 listings

Consumer Reviews for the BMW X4

Read recent reviews for the BMW X4
Overall Consumer Rating
4.4 out of 5 stars17 Reviews
Write a vehicle reviewSee all 17 reviews
  • 5 star
    (71%)
  • 4 star
    (18%)
  • 3 star
    (0%)
  • 2 star
    (6%)
  • 1 star
    (6%)
4 out of 5 stars

Fun to Drive

NYRIZ, 04/16/2021
2021 BMW X4 M40i 4dr SUV AWD (3.0L 6cyl Turbo 8A)
The ride is smooth. However in sport plus on regular streets will snap you back a bit. The exterior styling is great and you will get looks and comments. Not a true M Car but the M40i makes more sense for a daily driver. X4 M40i and X4M 0-60 times are too close to justify paying $10,000 more for the privilege of driving an M car
Report abuse

Used 2022 BMW X4 in Gilbert, AZ Values

Estimated values
2022 BMW X4 xDrive30i 4dr SUV AWD (2.0L 4cyl Turbo 8A) with no options
ConditionTrade-InPrivate PartyDealer Retail
Outstanding$31,251$33,280$35,396
Clean$30,834$32,819$34,887
Average$30,140$32,051$34,039
Rough$29,238$31,052$32,936

The average list price of a used 2022 BMW X4 in Gilbert, Arizona is $39,793. The average mileage on a used BMW X4 2022 for sale in Gilbert, Arizona is 37,731. Based on the average mileage of 37,731 for used 2022 BMW X4 for sale in Gilbert, AZ 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 X4 2022 in Gilbert, Arizona to be $30,140.

Filters
Skip to Results

Applied Filters4Active

Select Buying Experience

Location

Search radius200 miles
Search radius

Make & Model

Year

New / Used

Price & Payments

Price Rating

Body Type

Trim

Mileage

Accidents & History

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.