unify objects with state