add domain attribute