added robustness to store_items