changed get_items logic for simplicity and to fix a test.