use simpler API in example