added subroutine for x domain