add local storage and passed test