updating to init state