that's much nicer to read. Pull domain into a protected local variable.