adjustment for new api