updated state model
small bugfix