working on state saving