for borrowing function