#10 | added end state to actions