add marginalizing over different alignments