initialise storage with type and storage object