removed duplicates, added local storage