borrow a function and bind to an object