refactor entity item itemcopy and borrow