chop domain's end space