changed api to get