simdata and state class added