bug fix for use_function