sorting through DocumentItem now seems to be working