updating example with log arg