defining models on domain