build state