refactored borrow display function