added code from gps session