first draft for states (not complete)