updated update_max_alignment_length_after_net