changed api to match new api file