Replace samples