began writing the storage functions