changed comain -> domain in line 73