started combining GPS code with other code