initializing the stub method for location detection