added end state