refactoring how domInfos work