reordered branches
adding invis lines