modified as first working basic setup to periodically update location