splitting domain and data