updated
updated
added duplication_domain subroutine, implemented the duplication part
implemented the domain duplication part