resampling now accounts for different motifs