worked on state representation