refactored get display domain