added tostring for domain