created cpu state struct