a paired-end preprocessing script