fix example output, remove warning