using new api method