modified storesim,  needs work