checking for api function