fixing codes and final alignments