fixed a bug with randomly choosing SA index from alignments, much better accuracy now