committing changes for borrow function