commented extract gps functionality