renamed storageType to type