alignment generation and sorting finished