updated to match api