remove destructured assignment from geolocation code