readded accidentally removed line
only print something about invalid samples if there are any