modify storage func