state initialize update