update examples for modified code