trying to get location update to work, made some formatting changes