debug replicate'