+- changed to new analytcis code
++ added domain parameter