simplified if-statement in alignSequences()