clean alignment generation