set domain in initializer