refactor build() state check