switching to the latest API