adding gps functionality