updated GPS code