added gps check