little modification of state object in view