how does domestication work