storing current state