forward and reverse alignment generation