find positions of motifs