I made some changes to the borrow function