update alignments in file