state=1 state=2 state=3 state=4