wrote basic storage, needs debugging