updating API to latest version