implement bindFunc()