removed unnecessary domain.dispose()