rewritten alignemnt, created alignemt main vi