updated stateCreator file