added atomicUpdate example