changed storage to localStorage