debugged union
line end
corrected bugs in  filling    passing links