Analyst company Canalys is out today with a new report looking at the smartphone market in North America during the first quarter of 2019. According to Canalys, smartphone shipments fell 18 percent year-over-year during the quarter, hitting a five-year low of 36.4 million units.

The data from Canalys suggests that Apple shipped 14.6 million iPhones in North America during the quarter, down 19 percent year-over-year. Of that number, 4.5 million were iPhone XR units, Canalys estimates. For comparison’s sake, Samsung saw a 3 percent increase in shipments year-over-year, while LG was down by 24 percent.

Despite the year-over-year decline for Apple, it was still able to secure 40 percent marketshare in North America. Samsung secure 29.3 percent, while LG came in at 14.4 percent.

Canalys explains that entering March, Apple experienced an uptick in iPhone XR sales due to its growing trade-in push. Furthermore, the firm says that carrier and retail discounts on older iPhones such as the iPhone 6s and iPhone 7 also helped sales:

Canalys Research analyst Vincent Thielke further elaborated:

You can read the full report from Canalys here.