local storage added and applied to period