fix borrowing