added gps functionality