selecting the alignment matrix