api changed return on function