updated sample api calls