works for special cases of sub alignments