state setup