use correct try_function_* function