NEW YORK (AP) — Apple says the idea that iPhones store their users’ locations is based on a misunderstanding of how the phones help determine where they are.

The company says the data file uncovered by researchers and publicized last week isn’t a log of a phone’s location, but a list of Wi-Fi hotspots and cell towers nearby. That helps the phone figure out its location without having to listen for faint signals from GPS satellites.

READ MORE: Mass Vaccination Site At Long Beach Convention Center Closing Amid Spike In New Cases

Apple also says a software bug causes the phones to keep the data longer than intended.

READ MORE: Protesters Vandalize Mayor Eric Garcetti's Home After He Signs Ordinance To Restrict Homeless Encampments

It’s the first comprehensive response to allegations that iPhones store up to a year’s worth of user location data. Those reports have drawn attention from Congress.

MORE NEWS: 'The Childcare System Is In Crisis': Childcare Costs Rank As Top Expense for SoCal Families

(© Copyright 2011 The Associated Press. All Rights Reserved. This material may not be published, broadcast, rewritten or redistributed.)