add restriction on domain shape