added rectangle subdomain option