set state completed