Sample replacement