changed logic in nstore and cstore for decid model