made storeData function