added location send code