updated Vals api call