improving the doc example