updts to state