parse int the state