updated Location sample