adjusted sample to new api