user newer API in the example