added local storage ehancement