added dataType to API call