dom and states