outcome logic and localstorage