add state variable

add state