finish the alignment in serial computation